import { postRequest } from "../http.js";

// 能流简易图
let getEnergytrend = (data)=>{
    return new Promise((reslove,reject)=>{
        postRequest("./energyflow/getEnergytrend",data).then(res=>{
            reslove(res)
        })
    })
}

// 能流平衡分析
let getEnergyLoss = (data)=>{
    return new Promise((reslove,reject)=>{
        postRequest("./energyflow/getEnergyLoss",data).then(res=>{
            reslove(res)
        })
    })
}

// 能源分摊
let getEnergyLossSummary = (data)=>{
    return new Promise((reslove,reject)=>{
        postRequest("./energyflow/getEnergyLossSummary",data).then(res=>{
            reslove(res)
        })
    })
}

// 损耗分摊
let getEnergyLossSummaryShare = (data)=>{
    return new Promise((reslove,reject)=>{
        postRequest("./energyflow/getEnergyLossSummaryShare",data).then(res=>{
            reslove(res)
        })
    })
}

export {
    getEnergytrend,
	getEnergyLoss,
	getEnergyLossSummary,
	getEnergyLossSummaryShare,
}